package com.free.system.api;

import com.free.common.core.constant.ServiceNameConstants;
import com.free.common.core.web.page.TableDataInfo;
import com.free.system.api.domain.SysDictData;
import com.free.system.api.factory.RemoteUserFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 用户服务
 *
 * @author free
 */
@FeignClient(contextId = "remoteSystemService" , value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteUserFallbackFactory.class)
public interface RemoteSystemService {

    @PostMapping("/dict/data/list" )
    public TableDataInfo list(SysDictData dictData);
}
